import request from '@/utils/request'

export function getChunks(data) {
  return request({
    url: '/bonelf/upload/getChunks',
    method: 'get',
    params: data
  })
}

export function newMultipart(data) {
  return request({
    url: '/bonelf/upload/newMultipart',
    method: 'post',
    data
  })
}

export function getMultipartUrl(data) {
  return request({
    url: '/bonelf/upload/getMultipartUrl',
    method: 'get',
    params: data
  })
}

export function updateChunk(data) {
  return request({
    url: '/bonelf/upload/updateChunk',
    method: 'post',
    data
  })
}

export function completeMultipart(data) {
  return request({
    url: '/bonelf/upload/completeMultipart',
    method: 'post',
    data
  })
}
